//
//  CustomStateView.m
//  项目
//
//  Created by 关雷 on 15-1-6.
//  Copyright (c) 2015年 张诗雨. All rights reserved.
//

#import "CustomStateView.h"
#import "WebColor.h"
@implementation CustomStateView

- (void)dealloc
{
    [_buttonLeft1 release];
    [_buttonLeft2 release];
    [_buttonRight1 release];
    [_buttonRight2 release];
    [_lable1 release];
    [_lable2 release];
    [super dealloc];
}
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
      
        self.buttonLeft1 = [[UIButton alloc] initWithFrame:CGRectMake(15, frame.size.height / 3, 25, 25)];
        [self addSubview:_buttonLeft1];
        [_buttonLeft1 release];
        self.buttonLeft2 = [[UIButton alloc] initWithFrame:CGRectMake(frame.size.width / 3 - 20, frame.size.height / 3, 25, 25)];
        [self addSubview:_buttonLeft2];
        [_buttonLeft2 release];
        self.buttonRight1 = [[UIButton alloc] initWithFrame:CGRectMake(frame.size.width / 4 * 3 - 15, frame.size.height / 3, 25, 25)];
        [self addSubview:_buttonRight1];
        [_buttonRight1 release];
        self.buttonRight2 = [[UIButton alloc] initWithFrame:CGRectMake(frame.size.width - 35, frame.size.height / 3, 25, 25)];
        [self addSubview:_buttonRight2];
        [_buttonRight2 release];
        self.lable1 = [[UILabel alloc] initWithFrame:CGRectMake(_buttonLeft1.frame.size.width + 20, frame.size.height / 3, 30, 25)];
        [self addSubview:_lable1];
        [_lable1 release];
        self.lable2 = [[UILabel alloc] initWithFrame:CGRectMake(frame.size.width / 4 + 43, frame.size.height / 3, 30, 25)];
        [self addSubview:_lable2];
        [_lable2 release];
    }
    return self;
}
@end
